package day1.demo4_linkedList;

import java.util.LinkedList;

public class Test {
    public static void main(String[] args) {
        LinkedList lk = new LinkedList();
        lk.add("one");
        lk.add(1,"two");
        lk.addLast("three");
        lk.addFirst("zero");
        for (Object o : lk) {
            System.out.println(o);
        }
        System.out.println(lk);
        lk.get(2);
    }
}
